package com.sohoometer.station.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nari.coreframe.service.GenericServiceImpl;
import com.sohoometer.station.bean.WaterMeterInfo;
import com.sohoometer.station.dao.WaterMeterInfoDao;

@Service("waterMeterInfoService")
public class WaterMeterInfoServiceImpl  extends 	GenericServiceImpl<WaterMeterInfo, String>  implements 	WaterMeterInfoService {
	
	@Autowired
	private WaterMeterInfoDao waterMeterInfoDao;
	
	@Autowired
	public WaterMeterInfoServiceImpl(WaterMeterInfoDao waterMeterInfoDao) {
		setiGenericDao(waterMeterInfoDao);
		this.waterMeterInfoDao = waterMeterInfoDao;
	}

	@Override
	public List<WaterMeterInfo> queryWaterInfoByUserId(String id) throws Exception {
		return waterMeterInfoDao.queryWaterInfoByUserId(id);
	}
	

}
